package com.samsung.svmc.moneymanager.utility;

import java.util.HashMap;

public class SingletonSystem {

	protected HashMap<String, String> config;
	protected static SingletonSystem instance;
	protected int countActivity;
	
	protected SingletonSystem(){
		config = new HashMap<String, String>();		
		countActivity = 1;
	}
	
	public static SingletonSystem getInstance(){
		if(instance == null)
			instance = new SingletonSystem();
		return instance;
	}

	public HashMap<String, String> getConfig() {
		return config;
	}

	public void setConfig(HashMap<String, String> config) {
		this.config = config;
	}

	public int getCountActivity() {
		return countActivity;
	}
	
	public void setCountActivityByAdd() {
		this.countActivity ++;
	}
	
	public void setCountActivityBySub(){
		this.countActivity --;
	}
}
